package io;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        File file=new File("./fos.txt");
        if (file.exists()){
            System.out.println("已经存在");
        }else{
            file.createNewFile();
            System.out.println("创建成功");
        }
        FileOutputStream fos=new FileOutputStream(file);
        for (int i=0;i<26;i++){
            fos.write(97+i);
        }
        System.out.println("写出完毕");
        fos.close();
    }
}
